#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int get_days_of_month(int x, int y)
{

}
int main()
{
	int year = 0;
	int month = 0;
	scanf("%d %d", &year, &month);
	int day = get_days_of_month(year, month);
	printf("%d\n", day);
	return 0;
}
